<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Title</title>
        <script src="../js/jquery-3.4.1.min.js"></script>
        <script>
            $(function(){
                $("tbody tr:even").css("background","yellow");
                $("tbody tr:odd").css("background","hotpink");

            });
        </script>
    </head>
    <body>
        <!--十行五列的表格，一打开网页，通过jquery访问样式的方式，隔行变色-->

        <!--table>tbody>(tr>td{td$$}*5)*10-->
        <table>
            <tbody>
                <tr>
                    <td>td01</td>
                    <td>td02</td>
                    <td>td03</td>
                    <td>td04</td>
                    <td>td05</td>
                </tr>
                <tr>
                    <td>td01</td>
                    <td>td02</td>
                    <td>td03</td>
                    <td>td04</td>
                    <td>td05</td>
                </tr>
                <tr>
                    <td>td01</td>
                    <td>td02</td>
                    <td>td03</td>
                    <td>td04</td>
                    <td>td05</td>
                </tr>
                <tr>
                    <td>td01</td>
                    <td>td02</td>
                    <td>td03</td>
                    <td>td04</td>
                    <td>td05</td>
                </tr>
                <tr>
                    <td>td01</td>
                    <td>td02</td>
                    <td>td03</td>
                    <td>td04</td>
                    <td>td05</td>
                </tr>
                <tr>
                    <td>td01</td>
                    <td>td02</td>
                    <td>td03</td>
                    <td>td04</td>
                    <td>td05</td>
                </tr>
                <tr>
                    <td>td01</td>
                    <td>td02</td>
                    <td>td03</td>
                    <td>td04</td>
                    <td>td05</td>
                </tr>
                <tr>
                    <td>td01</td>
                    <td>td02</td>
                    <td>td03</td>
                    <td>td04</td>
                    <td>td05</td>
                </tr>
                <tr>
                    <td>td01</td>
                    <td>td02</td>
                    <td>td03</td>
                    <td>td04</td>
                    <td>td05</td>
                </tr>
                <tr>
                    <td>td01</td>
                    <td>td02</td>
                    <td>td03</td>
                    <td>td04</td>
                    <td>td05</td>
                </tr>
            </tbody>
        </table>
    </body>
</html>